package com.bbc.commonbackstage.common.annotation;


import com.bbc.commonbackstage.common.enums.SensitiveType;

import java.lang.annotation.*;

/**
 * 敏感信息脱敏注解标记
 *
 * @author liac
 * @date 2022/6/23
 */
@Target({ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface Desensitized {

    /** 脱敏类型(规则) */
    SensitiveType type();

    /** 判断注解是否生效的方法 */
    String isEffectiveMethod() default "";

}
